import React from 'react';
import { Popconfirm, Button } from 'antd';
/* eslint-disable */
const PopButton = ({ onConfirm, title, text, style }) =>
  <div className="web-page-header-search-item" style={style} >
    <Popconfirm
      placement="bottom"
      title={title}
      onConfirm={onConfirm}
      okText="确定"
      cancelText="取消"
    >
      <Button type="danger">{text}</Button>
    </Popconfirm>
  </div>
export default PopButton;
